package com.pyk.mapper;


import com.pyk.dto.Create_homework;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CreateHomeworkQuestionMapper {

    /*
    * 包含不同题目的作业
    * */
    @Insert("INSERT INTO creat_homework (homework_id, question_id, total_score, start_time, end_time) VALUES (#{homeworkId}, #{questionId}, #{totalScore}, #{startTime}, #{endTime})")
    void insertHomeworkQuestionAssociation(Create_homework createHomework);


    @Delete("delete from creat_homework where homework_id = #{homeworkId}")
    void deleteHomeworkById(Integer homeworkId);

    void deleteHwQt(Integer homeworkId, Integer questionId);
}
